﻿namespace genericsvsobjects
{
    public class DataClass
    {
        private static int _instanceNum;
        private int _myInstanceNum;

        public DataClass()
        {
            _myInstanceNum = _instanceNum;
            _instanceNum++;
        }

        public string InstanceName
        {
            get
            {
                return "Instance" + _myInstanceNum;
            }
        }
    }
}
